package comm;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Calendar;
import java.util.List;

/**
 * 令牌
 *
 * @author CAJR
 * @version 1.0.0
 */
@Data
public class TokenContext {
    @JsonProperty("access_token")
    private String accessToken;
    @JsonProperty("refresh_token")
    private String refreshToken;
    @JsonProperty("token_type")
    private String tokenType;
    @JsonProperty("expires_in")
    private long expiresIn;
    private String scope;
    private Boolean isHdOem;
    private Calendar validStartTime;
    private Calendar validEndTime;
    private Calendar createTime;
    private String companyName;
    private Integer type;
    private List authorities;
    private String acct;
    private String email;
    private String client_id;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String jti;
    private long tokenExpireTime;

}
